    <ul>
         @foreach($data as $l)
            <li>
                <div class="fl mem-box">
                    <?php
                    $pic = $l['user']['pic'] ? $l['user']['pic'] : '/img/product/img_65.jpg';
                    ?>
                    <img class="mem-pic" src="{{$pic}}"alt="">
                    <?php
                    $name_len = mb_strlen($l['user']['name']);
                    $name = $l['user']['name'];
                    if($name_len > 2){
                        $name = mb_substr($name,0,1).'**'.mb_substr($name,$name_len -1,1);
                    }elseif($name_len == 2){
                        $name = '**'.mb_substr($name,$name_len -1,1);
                    }
                    ?>
                    <p class="name">{{ $name }}</p>
                    <span class="rank"><img src="{{asset('/img/product/ico_39.png')}}"alt=""></span>
                </div>
                <div class="fl right-cont">
                    <div class="font">{{$l['comment']}}</div>
                    <div class="pic">
                    </div>
                    <div class="img-hid">
                        <img src="{{ $l['order_product']['product_img_url'] }}" alt="{{ $l['order_product']['product_name'] }}">
                    </div>
                    <div class="msg f-cb">


                        <?php if(isset($l['product_sku']['attributes'])){
                        ?>
                        
                        <span class="fl">{{$l['created_at']}}　　规格：
                        <?php if($l['product_sku']['attributes']){
                            $attrs = json_decode($l['product_sku']['attributes'],1);
                            $str = '';
                            if(is_array($attrs)){
                            foreach($attrs as $attr){
//                                $ar = explode(",",$attr);
//                                $str = "";
//                                foreach( $ar as $a){
//                                    $v = explode(":",$a);
//                                    if(isset($v[1])){
//                                        $str .= ":".$v[1];
//                                    }
//                                }
                                
//                                $str  = substr($str, 1);
                                $str = $attr['attr_name'].':'.$attr['val'];
                                echo $str." ";
                            }
                            }
                        }
                        ?>
                         
                        </span>
                        <?php }?>
                    </div>
                </div>
            </li>
        @endforeach
    </ul>
    @include('web.layout.page_common')
